package main

import (
	"github.com/go-martini/martini"
	"ServerGo/common"
	"ServerGo/routers"
)

func main() {
	port := common.GetConfigWithString("system", "port")
	env := common.GetConfigWithString("system","env")

	martini.Env = env
	m := martini.Classic()
	router.Register(m)
	m.RunOnAddr(port)
}
